
@layout("/common/_curd/_container.html"){

<div class="space-4"></div>
	<!-- #section:elements.form -->
	<div class="form-group" style="display: block">
		<label class="col-sm-2 control-label no-padding-right">上次同步时间 </label>
		<div class="col-sm-8">
		
			${result.status==1?result.start_time:result.finish_time}
		</div>
	</div>
	
	<div class="space-4"></div>
	<!-- 按钮 -->
	<div class="clearfix form-actions center"
		style="margin-top: 15px; margin-bottom: 5px;">
		<div class="col-md-offset-1 col-md-10">
		@ if(result.status ==1){
			&nbsp; &nbsp; &nbsp;
			<button class="btn btn-default btn-sm" onclick="async()" disabled="disabled">同步中</button>
		@}else{
			&nbsp; &nbsp; &nbsp;
			<button class="btn btn-default btn-sm" onclick="async()">开始同步</button>
		@}
			
		</div>
		<div style="display: none;">
		${token!}/////
		${result.des!}
		</div>
	</div>
	<script type="text/javascript">
		function async(){
			$.ajax({
				type : "GET",
				url : "${basePath}/async/start",
				success : function(data) {
					window.location.href="${basePath}/async/index";
				}
			});
		}
	</script>
@}
